﻿using Abp.Application.Navigation;
using Abp.Localization;

namespace FlyBridCms.Web
{
    /// <summary>
    /// This class defines menus for the application.
    /// It uses ABP's menu system.
    /// When you add menu items here, they are automatically appear in angular application.
    /// See Views/Layout/_TopMenu.cshtml file to know how to render menu.
    /// </summary>
    public class FlyBridCmsNavigationProvider : NavigationProvider
    {
        public override void SetNavigation(INavigationProviderContext context)
        {
            context.Manager.MainMenu
                .AddItem(
                    new MenuItemDefinition(
                        "Home",
                        new LocalizableString("HomePage", FlyBridCmsConsts.LocalizationSourceName),
                        url: "",
                        icon: "fa fa-home"
                        )
                ).AddItem(
                    new MenuItemDefinition(
                        "About",
                        new LocalizableString("About", FlyBridCmsConsts.LocalizationSourceName),
                        url: "About"
                        //icon: "fa fa-info"
                        )
                ).AddItem(
                    new MenuItemDefinition(
                        "Product",
                        new LocalizableString("Product", FlyBridCmsConsts.LocalizationSourceName),
                        url: "Product"
                        //icon: "fa fa-wechat"
                        )
                    ).AddItem(
                    new MenuItemDefinition(
                        "Sevices",
                        new LocalizableString("Sevices", FlyBridCmsConsts.LocalizationSourceName),
                        url: "Sevices"
                        //icon: "fa fa-wechat"
                        )
                  ).AddItem(
                    new MenuItemDefinition(
                        "Coop",
                        new LocalizableString("Coop", FlyBridCmsConsts.LocalizationSourceName),
                        url: "Coop"
                        //icon: "fa fa-archive"
                        )
                  ).AddItem(
                    new MenuItemDefinition(
                        "Blog",
                        new LocalizableString("Blog", FlyBridCmsConsts.LocalizationSourceName),
                        url: "Blog"
                        //icon: "fa fa-archive"
                        )
                  ).AddItem(
                    new MenuItemDefinition(
                        "Contact",
                        new LocalizableString("Contact", FlyBridCmsConsts.LocalizationSourceName),
                        url: "Contact"
                        //icon: "fa fa-wechat"
                        )
                  );
        }
    }
}
